package com.wasu.entity.live;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * <p>------------------------------------------------------
 * <p>Copyright (C) 2020 wasu company, All rights reserved.
 * <p>------------------------------------------------------
 * <p>
 * <p>
 *
 * @author Created by zhangmz
 * @date on 2023/8/21
 */
public class WasuEditChRelated implements Parcelable {

    private String chId;
    private String chName;
    private String bId;
    private List<WasuEdit> eventList;

    public WasuEditChRelated(){

    }

    public WasuEditChRelated(String chId, String chName, String bId, List<WasuEdit> eventList) {
        this.chId = chId;
        this.chName = chName;
        this.bId = bId;
        this.eventList = eventList;
    }

    protected WasuEditChRelated(Parcel in) {
        chId = in.readString();
        chName = in.readString();
        bId = in.readString();
        eventList = in.createTypedArrayList(WasuEdit.CREATOR);
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(chId);
        dest.writeString(chName);
        dest.writeString(bId);
        dest.writeTypedList(eventList);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<WasuEditChRelated> CREATOR = new Creator<WasuEditChRelated>() {
        @Override
        public WasuEditChRelated createFromParcel(Parcel in) {
            return new WasuEditChRelated(in);
        }

        @Override
        public WasuEditChRelated[] newArray(int size) {
            return new WasuEditChRelated[size];
        }
    };

    public String getChId() {
        return chId;
    }

    public void setChId(String chId) {
        this.chId = chId;
    }

    public String getChName() {
        return chName;
    }

    public void setChName(String chName) {
        this.chName = chName;
    }

    public String getbId() {
        return bId;
    }

    public void setbId(String bId) {
        this.bId = bId;
    }

    public List<WasuEdit> getEventList() {
        return eventList;
    }

    public void setEventList(List<WasuEdit> eventList) {
        this.eventList = eventList;
    }

    @Override
    public String toString() {
        return "WasuEditChRelated{" +
                "chId='" + chId + '\'' +
                ", chName='" + chName + '\'' +
                ", bId='" + bId + '\'' +
                ", eventList=" + eventList +
                '}';
    }
}
